
import { remote } from 'electron';

const dialog = remote.dialog;
const win = remote.getCurrentWindow();

export default function (str) {
    var options = {
        type: 'error',
        buttons: ["确定"],
        message: `${str}`
    }
    dialog.showMessageBoxSync(win, options)
}